private "_i";

_i = 0;

while { format ["%1", _this buildingPos _i] != "[0,0,0]" } do
{
	_i = _i + 1;
};
_i